home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QDataStream - Basic functions for serialization of binary
- data to a QIODevice
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qdatastream.h>
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((())))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((( QQQQBBBByyyytttteeeeAAAArrrrrrrraaaayyyy,,,, iiiinnnntttt mmmmooooddddeeee ))))
- vvvviiiirrrrttttuuuuaaaallll ~~~~QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm ()
- QQQQIIIIOOOODDDDeeeevvvviiiicccceeee**** ddddeeeevvvviiiicccceeee (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttDDDDeeeevvvviiiicccceeee (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** ))))
- vvvvooooiiiidddd uuuunnnnsssseeeettttDDDDeeeevvvviiiicccceeee (((())))
- bbbboooooooollll eeeeooooffff (((()))) ccccoooonnnnsssstttt
- iiiinnnntttt bbbbyyyytttteeeeOOOOrrrrddddeeeerrrr (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttBBBByyyytttteeeeOOOOrrrrddddeeeerrrr (((( iiiinnnntttt ))))
- bbbboooooooollll iiiissssPPPPrrrriiiinnnnttttaaaabbbblllleeeeDDDDaaaattttaaaa (((()))) ccccoooonnnnsssstttt
- vvvvooooiiiidddd sssseeeettttPPPPrrrriiiinnnnttttaaaabbbblllleeeeDDDDaaaattttaaaa (((( bbbboooooooollll ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT8888 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT8888 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT11116666 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT11116666 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT33332222 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT33332222 &&&& iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( ffffllllooooaaaatttt &&&& ffff ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( ddddoooouuuubbbblllleeee &&&& ffff ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( cccchhhhaaaarrrr ****&&&& ssssttttrrrr ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT8888 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT8888 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT11116666 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT11116666 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT33332222 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT33332222 iiii ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ffffllllooooaaaatttt ffff ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ddddoooouuuubbbblllleeee ffff ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ssssttttrrrr ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& rrrreeeeaaaaddddBBBByyyytttteeeessss (((( cccchhhhaaaarrrr ****&&&&,,,, uuuuiiiinnnntttt &&&& lllleeeennnn ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& rrrreeeeaaaaddddRRRRaaaawwwwBBBByyyytttteeeessss (((( cccchhhhaaaarrrr ****,,,, uuuuiiiinnnntttt lllleeeennnn ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& wwwwrrrriiiitttteeeeBBBByyyytttteeeessss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****,,,, uuuuiiiinnnntttt lllleeeennnn ))))
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm&&&& wwwwrrrriiiitttteeeeRRRRaaaawwwwBBBByyyytttteeeessss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****,,,, uuuuiiiinnnntttt lllleeeennnn ))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The QDataStream class provides basic functions for
- serialization of binary data to a QIODevice.
-
- A data stream is a binary stream of encoded information
- which is 100% independent of the host computer operation
- system, CPU or byte order. A stream that is written by a PC
- under DOS/Windows can easily be read by a Sun SPARC running
- Solaris.
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- The QDataStream class implements serialization of primitive
- types, like char, short, int, char* etc. Serialization of
- more complex data is accomplished by breaking up the data
- into primitive units.
-
- The programmer can select which byte order to use when
- serializing data. The default setting is big endian (MSB
- first). Changing it to little endian breaks the portability.
- We therefore recommend keeping this setting unless you have
- special needs or requirements.
-
- A data stream cooperates closely with a QIODevice. A
- QIODevice represents an input/output medium one can read
- data from and write data to. The QFile class is an example
- of an IO device.
-
- Example (write data to a stream):
-
- QFile f( "file.dta" );
- f.open( IO_WriteOnly ); // open file for writing
- QDataStream s( &f ); // serialize using f
- s << "the answer is"; // serialize string
- s << (Q_INT32)42; // serialize integer
- f.close(); // done
-
- Example (read data from a stream):
-
- QFile f( "file.dta" );
- f.open( IO_ReadOnly ); // open file for reading
- QDataStream s( &f ); // serialize using f
- char *str;
- Q_INT32 a;
- s >> str >> a; // "the answer is" and 42
- f.close(); // done
- delete str; // delete string
-
- In the last example, if you read into a QString instead of a
- char* you do not have to delete it.
-
- See also: QTextStream.
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((())))
- Constructs a data stream that has no IO device.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((( QQQQBBBByyyytttteeeeAAAArrrrrrrraaaayyyy aaaa,,,, iiiinnnntttt mmmmooooddddeeee ))))
- Constructs a data stream that operates on a byte array
- throught an internal QBuffer device.
-
- Example:
-
- static char bindata[] = { 231, 1, 44, ... };
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- QByteArray a;
- a.setRawData( bindata, sizeof(bindata) ); // a points to bindata
- QDataStream s( a, IO_ReadOnly ); // open on a's data
- s >> <something>; // read raw bindata
- a.resetRawData( bindata, sizeof(bindata) ); // finished
-
- The QArray::setRawData() function is not for the
- inexperienced.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** dddd ))))
- Constructs a data stream that uses the IO device _d.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::~~~~QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- Destroys the data stream.
-
- The destructor will not affect the current IO device, unless
- it is an internal IO device processing a QByteArray passed
- in the constructor.
-
- iiiinnnntttt QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::bbbbyyyytttteeeeOOOOrrrrddddeeeerrrr (((()))) ccccoooonnnnsssstttt
- Returns the current byte order setting.
-
- See also: setByteOrder().
-
- QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ddddeeeevvvviiiicccceeee (((()))) ccccoooonnnnsssstttt
- Returns the IO device currently set.
-
- See also: setDevice() and unsetDevice().
-
- bbbboooooooollll QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::eeeeooooffff (((()))) ccccoooonnnnsssstttt
- Returns TRUE if the IO device has reached the end position
- (end of stream or file) or if there is no IO device set.
-
- Returns FALSE if the current position of the read/write head
- of the IO device is somewhere before the end position.
-
- See also: QIODevice::atEnd().
-
- bbbboooooooollll QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::iiiissssPPPPrrrriiiinnnnttttaaaabbbblllleeeeDDDDaaaattttaaaa (((()))) ccccoooonnnnsssstttt
- Returns TRUE if the printable data flag has been set.
-
- See also: setPrintableData().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT11116666 iiii ))))
- Writes a signed 16-bit integer to the stream and returns a
- reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT33332222 iiii ))))
- Writes a signed 32-bit integer to the stream and returns a
- reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____IIIINNNNTTTT8888 iiii ))))
-
-
-
- PPPPaaaaggggeeee 3333 ((((pppprrrriiiinnnntttteeeedddd 9999////22222222////99998888))))
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- Writes a signed byte to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT11116666 iiii ))))
- Writes an unsigned 16-bit integer to the stream and returns
- a reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT33332222 iiii ))))
- Writes an unsigned 32-bit integer to the stream and returns
- a reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( QQQQ____UUUUIIIINNNNTTTT8888 iiii ))))
- Writes an unsigned byte to the stream and returns a
- reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ssss ))))
- Writes the '\0'-terminated string _s to the stream and
- returns a reference to the stream.
-
- The string is serialized using writeBytes().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ddddoooouuuubbbblllleeee ffff ))))
- Writes a 64-bit floating point number to the stream using
- the standard IEEE754 format. Returns a reference to the
- stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr<<<<<<<< (((( ffffllllooooaaaatttt ffff ))))
- Writes a 32-bit floating point number to the stream using
- the standard IEEE754 format. Returns a reference to the
- stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT11116666 &&&& iiii ))))
- Reads a signed 16-bit integer from the stream and returns a
- reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT33332222 &&&& iiii ))))
- Reads a signed 32-bit integer from the stream and returns a
- reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____IIIINNNNTTTT8888 &&&& iiii ))))
- Reads a signed byte from the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT11116666 &&&& iiii ))))
- Reads an unsigned 16-bit integer from the stream and returns
- a reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT33332222 &&&& iiii ))))
- Reads an unsigned 32-bit integer from the stream and returns
- a reference to the stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( QQQQ____UUUUIIIINNNNTTTT8888 &&&& iiii ))))
- Reads an unsigned byte from the stream and returns a
- reference to the stream.
-
-
-
- Page 4 (printed 9/22/98)
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( cccchhhhaaaarrrr ****&&&& ssss ))))
- Reads the '\0'-terminated string _s from the stream and
- returns a reference to the stream.
-
- The string is read using readBytes(), which allocates space
- using new.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( ddddoooouuuubbbblllleeee &&&& ffff ))))
- Reads a 64-bit floating point number from the stream using
- the standard IEEE754 format. Returns a reference to the
- stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::ooooppppeeeerrrraaaattttoooorrrr>>>>>>>> (((( ffffllllooooaaaatttt &&&& ffff ))))
- Reads a 32-bit floating point number from the stream using
- the standard IEEE754 format. Returns a reference to the
- stream.
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::rrrreeeeaaaaddddBBBByyyytttteeeessss (((( cccchhhhaaaarrrr ****&&&& ssss,,,, uuuuiiiinnnntttt &&&& llll ))))
- Reads the buffer _s from the stream and returns a reference
- to the stream.
-
- The buffer _s is allocated using new. Destroy it with the
- delete operator. If the length is zero or _s cannot be
- allocated, _s is set to 0.
-
- The _l parameter will be set to the length of the buffer.
-
- The serialization format is an Q_UINT32 length specifier
- first, then the data (_l_e_n_g_t_h bytes).
-
- See also: readRawBytes() and writeBytes().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::rrrreeeeaaaaddddRRRRaaaawwwwBBBByyyytttteeeessss (((( cccchhhhaaaarrrr **** ssss,,,, uuuuiiiinnnntttt lllleeeennnn ))))
- Reads _l_e_n bytes from the stream into _e s and returns a
- reference to the stream.
-
- The buffer _s must be preallocated.
-
- See also: readBytes(), QIODevice::readBlock() and
- writeRawBytes().
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::sssseeeettttBBBByyyytttteeeeOOOOrrrrddddeeeerrrr (((( iiiinnnntttt bbbboooo ))))
- Sets the serialization byte order to _b_o.
-
- The _b_o parameter can be QDataStream::BigEndian or
- QDataStream::LittleEndian.
-
- The default setting is big endian. We recommend leaving this
- setting unless you have special requirements.
-
- See also: byteOrder().
-
-
-
-
- Page 5 (printed 9/22/98)
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm((((3333qqqqtttt))))
-
-
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::sssseeeettttDDDDeeeevvvviiiicccceeee (((( QQQQIIIIOOOODDDDeeeevvvviiiicccceeee **** dddd ))))
- void QDataStream::setDevice(QIODevice *d ) Sets the IO
- device to _d.
-
- See also: device() and unsetDevice().
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::sssseeeettttPPPPrrrriiiinnnnttttaaaabbbblllleeeeDDDDaaaattttaaaa (((( bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
- Sets or clears the printable data flag.
-
- If this flag is set, the write functions will generate
- output that consists of printable characters (7 bit ASCII).
-
- We recommend enabling printable data only for debugging
- purposes (it is slower and creates bigger output).
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::uuuunnnnsssseeeettttDDDDeeeevvvviiiicccceeee (((())))
- Unsets the IO device. This is the same as calling setDevice(
- 0 ).
-
- See also: device() and setDevice().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::wwwwrrrriiiitttteeeeBBBByyyytttteeeessss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ssss,,,, uuuuiiiinnnntttt lllleeeennnn
- ))))
- Writes the length specifier _l_e_n and the buffer _s to the
- stream and returns a reference to the stream.
-
- The _l_e_n is serialized as an Q_UINT32, followed by _l_e_n bytes
- from _s.
-
- See also: writeRawBytes() and readBytes().
-
- QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm &&&& QQQQDDDDaaaattttaaaaSSSSttttrrrreeeeaaaammmm::::::::wwwwrrrriiiitttteeeeRRRRaaaawwwwBBBByyyytttteeeessss (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ssss,,,, uuuuiiiinnnntttt
- lllleeeennnn ))))
- Writes _l_e_n bytes from _s to the stream and returns a
- reference to the stream.
-
- See also: writeBytes(), QIODevice::writeBlock() and
- readRawBytes().
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqddddaaaattttaaaassssttttrrrreeeeaaaammmm....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
-
-
- Page 6 (printed 9/22/98)
-
-
-
-